package team.hyznrj.studentsys.dao.repository.account;


import org.springframework.data.jpa.repository.JpaRepository;
import team.hyznrj.studentsys.entity.account.RolePowerTable;
import team.hyznrj.studentsys.entity.account.key.RolePowerTableKey;

import java.util.List;

/**
 * @author ReMidDream
 * @date 2018-05-07 14:13
 **/
public interface RolePowerTableRepository extends JpaRepository<RolePowerTable,RolePowerTableKey> {

    List<RolePowerTable> findByIdRptRoleId(String roleId);

    List<RolePowerTable> findByIdRptPowerId(String PowerId);

    void deleteByIdRptRoleId(String roleId);

}
